import hashlib
import redis


def main():
    digester = hashlib.md5()
    with open('Intro4001.md', 'rb') as file_stream:
        file_iter = iter(lambda: file_stream.read(24), 'b')
        for data in file_iter:
            digester.update(data)
    print(digester.hexdigest())


if __name__ == '__main__':
    main()


def redieTest001():
    client = redis.Redis(host='1,1,1,1', port='6379', password='1qaz2wsx')

    client.set('a', 'b')


"""
def __init__(self, host='localhost', port=6379,
                 db=0, password=None, socket_timeout=None,
                 socket_connect_timeout=None,
                 socket_keepalive=None, socket_keepalive_options=None,
                 connection_pool=None, unix_socket_path=None,
                 encoding='utf-8', encoding_errors='strict',
                 charset=None, errors=None,
                 decode_responses=False, retry_on_timeout=False,
                 ssl=False, ssl_keyfile=None, ssl_certfile=None,
                 ssl_cert_reqs='required', ssl_ca_certs=None,
                 ssl_check_hostname=False,
                 max_connections=None, single_connection_client=False,
                 health_check_interval=0, client_name=None, username=None):
"""
